﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="BoxVideo.ascx.cs" Inherits="GUI.Controls.Sport.BoxVideo" %>
<div class="videothethao fl">
    <h2>
        <asp:Literal runat="server" ID="ltrTitle"></asp:Literal></h2>
    <asp:Literal ID="ltrTop" runat="server"></asp:Literal>
    <ul>
        <asp:Literal ID="ltrList" runat="server"></asp:Literal>
    </ul>
</div>
<script type="text/javascript">
    sohavideo.setCurrentData(<%=VideoData %>);
        $('.videothethao a').each(function () {
            var relVideoId = $(this).attr('rel');
            if (relVideoId != '') {
                var videoId = parseInt(relVideoId);
                if (videoId > 0) {
                    $(this).click(function (e) {
                        e.preventDefault();
                        sohavideo.lightboxVideo(videoId, function () {
                            sohavideo.loadNewVideoForLightbox(5, 1, 12, null, '/videotag-5/the-thao.htm');
                        });
                    });
                }
            }
        });
    onLoad(function () {
        $('.videothethao ul li:last').addClass('last');
    }, "Sport.BoxVideo.ascx");
</script>
